package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"varchar(30)"`
	Password string `gorm:"varchar(32)"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"varchar(30)"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"int"`
	Rid int `gorm:"int"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"varchar(30)"`
}
type RoleNode struct {
	gorm.Model
	Rid int `gorm:"int"`
	Nid int `gorm:"int"`
}
type Person struct {
	gorm.Model
	PersonName   string `gorm:"varchar(30)"`
	PersonTel    string `gorm:"varchar(30)"`
	PersonStatus string `gorm:"varchar(30)"`
	Pid          int    `gorm:"int"`
}
type PersonOrder struct {
	gorm.Model
	OrderCode   int    `gorm:"int"`
	OrderStatus string `gorm:"string"`
	OrderTo     string `gorm:"string"`
	Pid         int    `gorm:"int"`
}
type PersonOrderList struct {
	OrderId      int
	OrderCode    int
	OrderStatus  string
	OrderTo      string
	PersonName   string
	PersonTel    string
	PersonStatus string
}
